﻿using System.Net;

namespace SocketCore.Common.Config;

public class ClientConfig : HeartbeatConfig
{
    /// <summary>
    /// 连接IP地址
    /// 默认值:127.0.0.1
    /// </summary>
    public IPAddress IPAddress { get; set; } = IPAddress.Parse("127.0.0.1");

    /// <summary>
    /// 版本
    /// </summary>
    public string Version { get; set; }

    /// <summary>
    /// 最大重连次数
    /// </summary>
    public int? MaxReconnectAttempts { get; set; } = 5;

    /// <summary>
    /// 最小重连延迟时间（毫秒）
    /// 默认值: 3000 毫秒
    /// </summary>
    public int ReconnectDelayMs { get; set; } = 3000;
}